const fs = require('node:fs/promises')

const root = 'C:/'
var nowPATH = root
FOREACH_file(nowPATH)

function FOREACH_file(nowPATH){
    var nowread
    var a = []
    fs.readdir(nowPATH).then((files)=>{
        nowread=files
        console.log(nowread)
    })
}
